package com.rmb.white;

import com.rmb.mart.utils.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @ClassName RmbIpWhiteList
 * @Description 启动类
 * @Author yxs
 * @Date 2021/1/25 9:23
 **/
@SpringBootApplication
@MapperScan(basePackages = "com.rmb.white.dao")
public class RmbIpWhiteList {
    public static void main(String[] args) {
        SpringApplication.run(RmbIpWhiteList.class, args);
    }
    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
